package com.decent.ejfadmin.configure.service;

import com.decent.ejfadmin.common.bean.MessageBean;
import com.decent.ejfadmin.common.bean.Page;
import com.decent.ejfadmin.common.bean.PageBean;
import com.decent.ejfadmin.configure.entity.UserPlatformBanner;
import com.decent.ejfadmin.configure.entity.dto.UserPlatformBannerDTO;

/**
 * describe:会员系统banner
 *
 * @author 陈豆豆
 * @date 2019/08/10
 */
public interface BannerConfigService {
    /**
     * banner列表
     *
     * @param userPlatformBanner
     * @param page
     * @return
     */
    PageBean<UserPlatformBanner> listBanner(UserPlatformBanner userPlatformBanner, Page page);

    /**
     * @param userPlatformBanner
     * @return
     * @throws Exception
     */
    MessageBean addBanner(UserPlatformBannerDTO userPlatformBanner) throws Exception;

    /**
     * 修改Banner
     *
     * @param userPlatformBanner
     * @return
     * @throws Exception
     */
    MessageBean updateBanner(UserPlatformBannerDTO userPlatformBanner) throws Exception;

    /**
     * 删除Banner
     *
     * @param id
     * @return
     */
    MessageBean deleteBanner(Integer id);
}
